#!/usr/bin/env python
from distutils.core import setup
try:
    from DistUtilsExtra.command import build_extra, build_i18n, build_help, build_icons
except ImportError:
    print 'Cannot install the software. Please install package python-distutils-extra.'
    raise SystemExit

setup(name = 'gnome-tweak',
      description = 'Extra GNOME setting dialogs',
      long_description = 
('This is a set of extra GNOME setting dialogs, such as desktop icon,\n' 
'window title bar layout. Dialogs are installed in system->preference menu.'),
      version = '0.2',
      author = 'Homer Xing',
      author_email = 'homer.xing@gmail.com',
      url = 'http://gnome-tweak.googlecode.com/',
      license = 'GPLv3',
      platforms = ['linux'],
      packages = ['gnome_tweak', 'gnome_tweak.lib'],
      data_files = [
        ('share/man/man1/', ['gnome-tweak.1']),
        ('share/applications/', ['desktop-properties.desktop']),
      ],
      scripts = ['gnome-tweak'],
      cmdclass = { 'build' :  build_extra.build_extra,
                   'build_i18n' :  build_i18n.build_i18n,
                   'build_help' :  build_help.build_help,
                   'build_icons' :  build_icons.build_icons
                 }
      )
